package me.spring.cloud.components.starter.business.log;

import me.spring.cloud.components.starter.business.log.configuration.BusQueueConfiguration;
import me.spring.cloud.components.starter.business.log.configuration.BusinessLogConfiguration;
import me.spring.cloud.components.starter.business.log.properties.BusinessProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @author YuanWei
 * @description: 业务日志开启
 * @date 2019/3/29 10:23
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableAspectJAutoProxy//启用AspectJ自动代理
@EnableConfigurationProperties(BusinessProperties.class)
@Import({BusinessLogConfiguration.class, BusQueueConfiguration.class})
public @interface EnableBusAspectLog {
}
